import { getParkInfoAPI } from '@/api/request'
import { ref } from 'vue'

export const useParkinfo = () => {
  // 声明响应式数据
  const parkInfo = ref({})
  // 调用接口返回数据
  const getParkInfo = async () => {
    const res = await getParkInfoAPI()
    parkInfo.value = res.data
  }
  return { parkInfo, getParkInfo }
}
